home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
xmbase-grok-1.2
/
Imakefile
< prev
next >
Wrap
Makefile
|
1995-06-25
|
4KB
|
169 lines
/*
* Imakefile for grok.
* A surprising number of systems have neither xmkmf nor imake, for example
* all HP/UX and AIX (IBM RS6000) systems I have seen. For these systems, use
* make -f Makefile.alt
*/
/*
* This Imakefile has been modified by Tom Kelly (tom@sco.com)
*/
/*
* GBIN is where the main executable goes, everything else (help file) is in
* GLIB. The documentation (Manual.ps) is not installed, that's up to you.
*/
#undef SCO_ODT_3_0
#define SCO_OSE_5_0
#undef ancilla
#undef contrib
#define skunkware
#ifdef SCO_ODT_3_0
SCO_CFLAGS=
#endif
#ifdef SCO_OSE_5_0
SCO_CFLAGS=-b elf
IXI_MOTIF_DEFINES=-DDISABLE_IXI_EXTENSIONS
#endif
#ifdef ancilla
GBIN = /u/bin
GLIB = /u/lib/xmbase-grok-1.2
GMAN = /u/man/man1
#endif
#ifdef skunkware
GBIN = /usr/skunk/bin
GLIB = /usr/skunk/lib/xmbase-grok-1.2
GMAN = /usr/skunk/man/man.1
#endif
CCOPTIONS = $(SCO_CFLAGS)
CDEBUGFLAGS = -g /* to turn optimizing off, comment this line out */
/*
* Do not change anyhting below.
*/
#if defined(SCO_ODT_3_0)
LIB = $(XTXMLIB) $(XLIB) $(SYSLIBS) $(XMEXTRA_LIBS) $(EXTRA_LIBRARIES) -lm
#else
#if defined(SCO_OSE_5_0)
LIB = -lXm $(XTOOLLIB) $(XLIB) $(SYSLIBS) $(XMEXTRA_LIBS) $(EXTRA_LIBRARIES) -lm
#else
#ifdef sgi
LIB = -lSgm -lXm $(XTOOLLIB) $(XLIB) $(SYSLIBS) $(XMEXTRA_LIBS) -lm
#else
LIB = -lXm $(XTOOLLIB) $(XLIB) $(SYSLIBS) $(XMEXTRA_LIBS) -lm
#endif
#endif
#endif
SRC = canvdraw.c cardwin.c chart.c chartdrw.c convert.c dbase.c\
dbfile.c editwin.c eval.c evalfunc.c formfile.c formop.c formwin.c\
help.c main.c mainwin.c popup.c prefwin.c print.c printwin.c query.c\
sectwin.c querywin.c sumwin.c util.c
INC = config.h form.h grok.h proto.h patchlevel.h resource.h\
bm_icon.h bm_left.h bm_right.h
DOC = doc/files.tex doc/formedit.tex doc/grammar.tex doc/intro.tex\
doc/macro.tex doc/main.tex
DEMO = grokdir/countries.db grokdir/countries.gf \
grokdir/phone.db grokdir/phone.gf \
grokdir/phonelog.db grokdir/phonelog.gf \
grokdir/todo.db grokdir/todo.gf \
grokdir/diary.db grokdir/diary.gf \
grokdir/passwd.gf \
grokdir/procdemo grokdir/procdemo.gf \
grokdir/weather.db grokdir/weather.gf \
grokdir/checkbook.db grokdir/checkbook.gf\
grokdir/www_pages.db grokdir/www_pages.gf
EXTRA_DEFINES = -DPATH=\"$(GBIN):$(GLIB)\" -DLIB=\"$(GLIB)\" $(IXI_MOTIF_DEFINES)
AllTarget(grok)
NormalProgramTarget(grok,y.tab.o $(SRC:.c=.o),,,$(LIB))
InstallProgram(grok,$(GBIN))
InstallProgram(grok.hlp,$(GLIB))
InstallMultiple(Manual.ps grok.hlp,$(GLIB))
InstallMultiple($(DEMO),$(GLIB)/grokdir)
InstallNonExec(grok.1,$(GMAN))
#if 0
InstallNonExec(grok.xpm,$(LIBDIR)/pixmaps)
#endif
$(SRC:.c=.o): config.h grok.h proto.h form.h
popup.o: patchlevel.h
main.o: resource.h
util.o: bm_icon.h
evalfunc.o eval.o: y.tab.h
eval.o: y.tab.c
y.tab.c: parser.y
$(YACC) -d parser.y
#---------------------------------------------------------------
LIST0 = README HISTORY grok.hlp Imakefile Makefile.alt $(SRC) parser.y $(INC)
LIST = $(LIST0) $(DOC) grok.1 grok.1cat $(DEMO)
shar: Manual.ps
-rm -f grok.shar*
shar -n grok -a -M -o grok.shar -L 50 $(LIST) Manual.ps Grok.icon Grok.fti
uushar: Manual.ps
-rm -f grok.shar* grok.tar*
tar cvf grok.tar $(LIST) Manual.ps Grok.icon Grok.fti
gzip -9 grok.tar
shar -n grok.tar.gz -a -M -o grok.shar -L 62 grok.tar.gz
-rm -f grok.tar.gz
uushargz:
-rm -f grok.shar* grok.tar*
tar cvf grok.tar $(LIST0)
gzip -9 grok.tar
shar -n grok.tar.gz -a -M -o grok.shar -L 62 grok.tar.gz
-rm -f grok.tar.gz
uusharZ:
-rm -f grok.shar* grok.tar*
tar cvf grok.tar $(LIST0)
compress grok.tar
shar -n grok.tar.Z -a -M -o grok.shar -L 62 grok.tar.Z
-rm -f grok.tar.Z
tar:
-rm grok.tar*
tar cvf grok.tar Makefile $(SRC) $(INC)
compress grok.tar
shar -n grok -a -M -o grok.tar.Z.shar -L 60 grok.tar.Z
rm grok.tar.Z
#---------------------------------------------------------------
#if 0
# Don't recreate the doc (we need tex)
Manual.ps: doc/main.dvi
dvips -f doc/main.dvi >Manual.ps
-rm -f doc/jobname.cont doc/main.cont doc/main.log
doc/main.dvi: doc/formedit.tex doc/grammar.tex doc/macro.tex doc/main.tex
cd doc; tex main.tex; tex main.tex
-rm -f doc/jobname.cont doc/main.cont doc/main.log
#endif
clean::
-rm -f y.tab.h y.tab.c lex.yy.c grok y.output *.shar*
-rm -f doc/?*dvi doc/?*tmp doc/?*log doc/?*aux doc/?*cont